package com.hht.toolanduilibs.wb;

import android.content.Context;

import com.hht.toolanduilibs.util.SystemPropertyUtil;

/**
 * Author:chen'hu
 * Time:2024/4/22 9:51
 * Description:This is PlatformsUtils
 */
public class PlatformsUtils {

    private Context mContext;
    private final static String HHT_KEY_PLATFORMS = "persist.hht.Platforms";//HHT的，以前基本用这个
    private final static String HHT_CUSTOMER_PRD_ID = "customer.prdID";
    private final static String KEY_PLATFORMS="persist.sys.Platforms";//标准的，以后要用这个

    public final static String IST_30_CPLUS = "IST_30_CPLUS";
    public final static String IST_30_19C = "IST_30_19C";
    public final static String IST_30_MOJE = "IST_30_MOJE";

    public final static String HHT_KEY_PLATFORMS_M22 = "M22";
    public final static String HHT_KEY_PLATFORMS_MT9679_NORMAL = "MT9679_NORMAL";
    public final static String HHT_KEY_PLATFORMS_22A = "22A";
    public final static String HHT_KEY_PLATFORMS_RS = "RS";
    public final static String HHT_KEY_PLATFORMS_V311D2_A22_IQ = "V311D2_A22_IQ";
    public final static String HHT_KEY_PLATFORMS_V311D2_ER_C1="V311D2_ER_C1";
    public final static String LG_EDLA = "V311D2_A23LG_EDLA";//理光机器
    public final static String IS_USE_OTHER_WB="persist.sys.3rdwhiteboard";
    public final static String MODEL="ro.product.chip.model";


    public PlatformsUtils(Context context) {
        mContext=context;
    }

    public String getModelPlatforms() {
        return SystemPropertyUtil.INSTANCE.get(mContext,MODEL);
    }

    public boolean isUseOtherWb(){
        return SystemPropertyUtil.INSTANCE.getBoolean(mContext,IS_USE_OTHER_WB,false);
    }

    public String getHongHeKeyPlatforms() {
        return SystemPropertyUtil.INSTANCE.get(mContext,HHT_KEY_PLATFORMS);
    }

    public String getKeyPlatforms() {
        return SystemPropertyUtil.INSTANCE.get(mContext,KEY_PLATFORMS);
    }

    public String getCustomerPrdID() {
        return SystemPropertyUtil.INSTANCE.get(mContext,HHT_CUSTOMER_PRD_ID);
    }

    //判断是否是理光机器
    public boolean isLiGang() {
        return LG_EDLA.equals(getKeyPlatforms());
    }
}
